package shiyan2;

public class College extends Student2{
    private int score1;
    private int score2;
    static int totalStudent = 0;
    public College(){
        totalStudent++;
    }

    public College(String sID,String sName, int score1, int score2) {
        this.sID = sID;
        this.sName = sName;
        this.score1 = score1;
        this.score2 = score2;
        totalStudent++;
    }
    @Override
    public int totalScore(){
        return score1+score2;
    }

    public int getScore1() {
        return score1;
    }

    public void setScore1(int score1) {
        this.score1 = score1;
    }

    public int getScore2() {
        return score2;
    }

    public void setScore2(int score2) {
        this.score2 = score2;
    }
    public String getsID() {
        return sID;
    }

    public void setsID(String sID) {
        this.sID = sID;
    }
    public String getsName() {
        return sName;
    }

    public void setsName(String sName) {
        this.sName = sName;
    }
}

